package com.jackfangqi.zhihuijizhou.activities;

import android.net.Uri;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import com.jackfangqi.zhihuijizhou.R;
import com.jackfangqi.zhihuijizhou.fragments.LvYouFragment;

public class MainActivity extends FragmentActivity implements LvYouFragment.OnFragmentInteractionListener{

    private LvYouFragment lvYouFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        FragmentManager supportFragmentManager = getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = supportFragmentManager.beginTransaction();
        lvYouFragment = new LvYouFragment();
        fragmentTransaction.add(R.id.fragment_container,lvYouFragment);
        fragmentTransaction.commit();

    }

    @Override
    public void onFragmentInteraction(Uri uri) {

    }
}
